<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>[[${product.title()}]] &ndash; Магазинчик</title>
</head>
<body>
<a data-th-href="@{/catalogue/products/list}">&larr; К списку товаров</a>
<h1 data-th-text="${product.title()}"></h1>
<ul>
    <li><strong>ID</strong>: <span data-th-text="${product.id()}"></span></li>
    <li><strong>Название</strong>: <span data-th-text="${product.title()}"></span></li>
    <li><strong>Описание</strong>: <span data-th-text="${product.details()}"></span></li>
</ul>
<a data-th-href="@{/catalogue/products/{productId}/edit(productId=${product.id()})}">&larr; Редактировать товар</a><br>
<form method="post" data-th-action="@{/catalogue/products/{productId}/delete(productId=${product.id()})}">
    <button type="submit">Удалить товар</button>
</form>
</body>
</html>